<?php $__env->startSection('css'); ?>
<link rel="stylesheet" type="text/css" href="<?php echo e(asset(getThemeAssets('nestable/nestable.css', true))); ?>">
<link rel="stylesheet" type="text/css" href="<?php echo e(asset(getThemeAssets('bootstrap-select/bootstrap-select.min.css', true))); ?>">
<link href="<?php echo e(asset(getThemeAssets('ionRangeSlider/ion.rangeSlider.css', true))); ?>" rel="stylesheet">
<link href="<?php echo e(asset(getThemeAssets('ionRangeSlider/ion.rangeSlider.skinFlat.css', true))); ?>" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="<?php echo e(asset(getThemeAssets('ladda/ladda-themeless.min.css', true))); ?>">
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<?php $menuPreseter = app('App\Repositories\Presenters\Admin\MenuPresenter'); ?>
<div class="row wrapper border-bottom white-bg page-heading">
  <div class="col-lg-10">
    <h2><?php echo trans('menu.title'); ?></h2>
    <ol class="breadcrumb">
      <li>
            <a href="<?php echo e(url('admin')); ?>"><?php echo trans('home.title'); ?></a>
        </li>
        <li class="active">
            <strong><?php echo trans('menu.title'); ?></strong>
        </li>
    </ol>
  </div>
  <div class="col-lg-2">
    <div class="title-action">
      <?php if(haspermission('menucontroller.cacheclear')): ?>
      <a href="<?php echo e(url('admin/menu/clear')); ?>" class="btn btn-info"><i class="fa fa-cancel"></i> 
        <?php echo e(trans('menu.cache_clear')); ?>

      </a>
      <?php endif; ?>
    </div>
  </div>
</div>
<div class="wrapper wrapper-content  animated">
  <div class="row">
    <?php echo $__env->make('flash::message', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
    <div class="col-lg-6">
      <div class="ibox animated">
        <div class="ibox-title">
            <h5><?php echo trans('menu.desc'); ?></h5>
        </div>
        <div class="ibox-content">
          <div class="dd" id="nestable">
              <ol class="dd-list">
                <?php echo $menuPreseter->menuNestable($menus); ?>

              </ol>
          </div>
        </div>
      </div>
    </div>
    <div class="col-lg-6 menuBox">
        <?php echo $menuPreseter->canCreateMenu(); ?>

    </div>
  </div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('js'); ?>
<script src="<?php echo e(asset(getThemeAssets('nestable/jquery.nestable.js', true))); ?>"></script>
<script src="<?php echo e(asset(getThemeAssets('bootstrap-select/bootstrap-select.min.js', true))); ?>"></script>
<script src="<?php echo e(asset(getThemeAssets('ionRangeSlider/ion.rangeSlider.min.js', true))); ?>"></script>
<script src="<?php echo e(asset(getThemeAssets('ladda/spin.min.js', true))); ?>"></script>
<script src="<?php echo e(asset(getThemeAssets('ladda/ladda.min.js', true))); ?>"></script>
<script src="<?php echo e(asset(getThemeAssets('ladda/ladda.jquery.min.js', true))); ?>"></script>
<script src="<?php echo e(asset(getThemeAssets('layer/layer.js', true))); ?>"></script>
<script src="<?php echo e(asset(getThemeAssets('js/menu.js'))); ?>"></script>
<script type="text/javascript">
  $('#nestable').on('click','.destroy_item',function() {
    var _item = $(this);
    var title = "<?php echo e(trans('common.deleteTitle').trans('menu.desc')); ?>？";
    layer.confirm(title, {
      btn: ['<?php echo e(trans('common.yes')); ?>', '<?php echo e(trans('common.no')); ?>'],
      icon: 5
    },function(index){
      _item.children('form').submit();
      layer.close(index);
    });
  });
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.'.getTheme(), array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>